<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<base href="<%=basePath%>">
<title>生活管理软件</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css"
	href="css/jquery-ui-1.8.16.custom.css">
<script type="text/javascript" src="js/jquery-1.6.4.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.js"></script>
<script type="text/javascript" src="js/animate.js"></script>
<style type="text/css">
body {
	background-image: url('images/bg.jpg');
}
.border {
	border: 1px solid #336699;
	width: 300;
	height: 35;
}
.top {
	font-size: 30px;
	color: #154678;
	font-family: cursive;
}
</style>
<script type="text/javascript">
	function sub() {
		var users = document.getElementById("users").value;
		var pwd = document.getElementById("password").value;
		if (users == "") {
			document.mylogin.users.focus();
			alert("请输入用户名");
		} else if (pwd == "") {
			document.mylogin.password.focus();
			alert("请输入密码");
		} else {
			document.getElementById("mylogin").submit();
		}
	}
</script>
</head>

<body>

	<div align="center" class="top" title="欢迎登录公款财务管理">
		<form action="LoginServlet" id="mylogin" method="post">
			用户名：<input type="text" value="super" name="users" class="border">
			<br> &nbsp;&nbsp;&nbsp;密码：<input type="password" name="password"
				class="border" value="super"> <br> <input type="button"
				name="btn" value="进入管理界面" onclick="sub()"> <input
				type="button" name="init" value="进去" onclick="sub()">

		</form>
	</div>
</body>
</html>
